module Logins.Common exposing (..)
import Json.Decode as Decode

loginResDecoder : Decode.Decoder (Result String String)
loginResDecoder =
 let
  okDecoder = Decode.map Ok (Decode.field "Ok" Decode.string)
  errDecoder = Decode.map Err (Decode.field "Err" Decode.string)
 in
  Decode.oneOf [okDecoder,errDecoder]
 